/**
 * ChatGroup类代表一个聊天组模型
 * 它包含了与聊天组相关的各种信息，如组名、描述、拥有者等
 */
package com.spider.im.chat.model;

import lombok.Setter;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;


import java.time.LocalDateTime;
import java.util.List;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class ChatGroup {
    // 聊天组的唯一标识符
    private Long id;
    // 聊天组的名称
    private String groupName;
    // 聊天组的描述信息
    private String groupDescription;
    // 聊天组的拥有者用户名
    private String groupOwner;
    // 以字符串形式存储的聊天组成员列表，成员之间以一定分隔符分割
    private String groupMembers;
    // 聊天组的状态，例如活跃、解散等
    private String groupStatus;
    // 聊天组创建的时间
    private LocalDateTime createdAt;
    // 聊天组最后一次更新的时间
    private LocalDateTime updatedAt;
    // 聊天组的标签列表，用于标识或分类聊天组
    private List<String> groupTagsList;

    // 手动定义的不含id的构造函数
    public ChatGroup(String groupName, String groupDescription, String groupOwner, String groupMembers, String groupStatus, LocalDateTime createdAt, LocalDateTime updatedAt, List<String> groupTagsList) {
        this.groupName = groupName;
        this.groupDescription = groupDescription;
        this.groupOwner = groupOwner;
        this.groupMembers = groupMembers;
        this.groupStatus = groupStatus;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
        this.groupTagsList = groupTagsList;
    }
}
